<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="updateCategoryOptions.htm" method="post" theme="simple" id="form">
	<table width="100%">
		<tbody>
			<tr>
				<td height="40" class="sectionheading bottom-border">
					Category Options
				</td>
			</tr>
			<tr>
				<td>
					<table class="verdana12blacknormal" width="100%">
						<tbody>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									<s:actionmessage theme="simple" cssClass="note-red" />
									<s:actionerror theme="simple" cssClass="note-red" />
									<s:fielderror theme="simple" cssClass="note-red" />
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Homepage Category Columns:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.homepageCategoryColumns" size="5"
										value="%{categoryOptions.homepageCategoryColumns}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Non Homepage Category Columns:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.nonHomepageCategoryColumns" size="5"
										value="%{categoryOptions.nonHomepageCategoryColumns}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Category Columns in Category Browse Mode:
								</td>

								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.categoryColumnsInCategoryBrowseMode"
										size="5"
										value="%{categoryOptions.categoryColumnsInCategoryBrowseMode}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									SubCategory Columns in Category Browse Mode:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.subcategoryColumnsInCategoryBrowseMode"
										size="5"
										value="%{categoryOptions.subcategoryColumnsInCategoryBrowseMode}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Homepage Subcategories Separator (HTML allowed):
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.homepageSubcategoriesSeparator"
										size="20"
										value="%{categoryOptions.homepageSubcategoriesSeparator}" />
								</td>

							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Subcategories Separator (HTML allowed):
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.subcategoriesSeparator" size="20"
										value="%{categoryOptions.subcategoriesSeparator}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Browse Categories Subcategories Separator (HTML allowed):
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.browseCategoriesSubcategoriesSeparator"
										size="20"
										value="%{categoryOptions.browseCategoriesSubcategoriesSeparator}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Categories Horizontal Spacing:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.categoriesHorizontalSpacing" size="10"
										value="%{categoryOptions.categoriesHorizontalSpacing}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Under Categories More... :
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.underCategories" size="20"
										value="%{categoryOptions.underCategories}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Menu Line Separator (HTML allowed):
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.menuLineSeparator" size="20"
										value="%{categoryOptions.menuLineSeparator}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Menu Line and Home Separator (HTML allowed):
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.menuLineAndHomeSeparator" size="20"
										value="%{categoryOptions.menuLineAndHomeSeparator}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Display Main Category Count:
								</td>

								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.mainCategoryCount}"
										name="categoryOptions.mainCategoryCount"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Display Category Count:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.categoryCount}"
										name="categoryOptions.categoryCount"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>

							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Display SubCategories Count:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.subcategoriesCount}"
										name="categoryOptions.subcategoriesCount"
										list="#{'1':'Yes', '0':'No'}"></s:select>

								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Use Category Folders:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.useCategoryFolders}"
										name="categoryOptions.useCategoryFolders"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Use Homepage Category Folders:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.useHomepageCategoryFolders}"
										name="categoryOptions.useHomepageCategoryFolders"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Display Main Category Alt Translation:
								</td>

								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.mainCategoryAltTranslation}"
										name="categoryOptions.mainCategoryAltTranslation"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Display Category Alt Translation:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.categoryAltTranslation}"
										name="categoryOptions.categoryAltTranslation"
										list="#{'1':'Yes', '0':'No'}"></s:select>
								</td>

							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Default Category Folders Image File:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.defaultCategoryFoldersImageFile"
										size="30"
										value="%{categoryOptions.defaultCategoryFoldersImageFile}" />
								</td>
							</tr>

							<tr>

								<td align="right" class="verdana12blacknormal">
									Default Homepage Category Folders Image File:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.defaultHomepageCategoryFoldersImageFile"
										size="30"
										value="%{categoryOptions.defaultHomepageCategoryFoldersImageFile}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Home Page Category Teasers Display Mode:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.homePageCategoryTeasersDisplayMode}"
										name="categoryOptions.homePageCategoryTeasersDisplayMode"
										list="#{'0':'Non', '1':'Only selected subcategories', '2':'Description of the categories only', '3':'All sub categories in a list', '4':'Description and selected subcategories'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Category Teasers Display Mode:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.categoryTeasersDisplayMode}"
										name="categoryOptions.categoryTeasersDisplayMode"
										list="#{'0':'Non', '1':'Only selected subcategories', '2':'Description of the categories only', '3':'All sub categories in a list', '4':'Description and selected subcategories'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Category Browse Display Mode:
								</td>
								<td>
									<s:select theme="simple" cssClass="Textfiled-border"
										value="%{categoryOptions.categoryBrowseDisplayMode}"
										name="categoryOptions.categoryBrowseDisplayMode"
										list="#{'0':'Non', '1':'Only selected subcategories', '2':'Description of the categories only', '3':'All sub categories in a list', '4':'Description and selected subcategories'}"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Submit Categories Start Levels:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.categoriesStartLevels" size="10"
										value="%{categoryOptions.categoriesStartLevels}" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Submit Categories Incremental Levels:
								</td>
								<td>
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="categoryOptions.categoriesIncrementalLevels" size="10"
										value="%{categoryOptions.categoriesIncrementalLevels}" />
								</td>
							</tr>

							<tr align="right">
								<td align="right">
									<s:submit type="image"
										src="../Admin-Images/save-chagnes-button.gif" />
									<img style="cursor: pointer;"
										onclick="document.getElementById('form').reset();"
										src="../Admin-Images/reset-button.gif" alt="Reset">
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
	<s:hidden name="categoryOptions.id" value="%{categoryOptions.id}"></s:hidden>
</s:form>